# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/pd/pd-0.39_p1.ebuild,v 1.1 2005/11/01 21:41:54 matsuu Exp $

IUSE="mmx alsa debug jack"

inherit eutils cvs

ECVS_USER="anonymous"
ECVS_SERVER="cvs.sourceforge.net:/cvsroot/pure-data"
ECVS_MODULE="."
ECVS_LOCALNAME="cvs-pd"
S=${WORKDIR}/${ECVS_LOCALNAME}/externals


DESCRIPTION="real-time music and multimedia environment (externals)."
HOMEPAGE="http://www-crca.ucsd.edu/~msp/software.html"
SRC_URI=""

LICENSE="|| ( BSD as-is )"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

DEPEND="media-sound/pd-cvs
	>=sci-mathematics/fann-1.2.0"

src_compile() {
	local myconf
	cd pdp
	./configure "--enable-mmx --includedir=../../../pd/src --prefix=/usr" 
	cd ${S}/unauthorized
	make -I../../../pd/src || die "make failed."

}

src_install() {
	dodir /usr/lib/pd/doc/5.reference
	cd build
	scons prefix=${D}usr/lib/pd install || die "install failed"
	ewarn "scons done."
	cd ${S}/unauthorized
	make INSTALL_PREFIX=${D}usr/lib/pd install || die "failed."
}
